/**
 * Created by 张强 on 2017/11/27.
 */
import { GET_DEFAULT_ADDRESS } from "./actionsTypes";
import commonAction from '../../../../../js/actions/commonAction';

//获取默认地址
export const currentAddress = data => ({type: GET_DEFAULT_ADDRESS, data: data});

//获取默认地址
export const getDefaultAddress=(data,callBack)=>{
    return commonAction.simplePost(data,'emsc-partner/b/a/q/default',currentAddress,callBack);
};

//获取地区数据
export const getAreaData=(data,callBack)=>{
    return commonAction.simpleGet(data,'emsc-partner/c/a/all',areaData,callBack);
};

//提交寄快递信息
export const submitFormData=(data,callBack)=>{
    return commonAction.simplePost(data,'emsc-partner/b/sd/addOrder',undefined,callBack);
};
